<!--{include manage_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="/manage/user/manager.php">用户管理</a></li>
    <li><a href="/manage/user/edit.php">会员编辑</a></li>
	<li style="float:right;  font-size:22px; ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8;">
    <!--{if $_SESSION['ali_token']}-->${mb_strimwidth($login_user['realname'],0,10)}<!--{else}-->${mb_strimwidth($login_user['username'],0,10)}<!--{/if}-->
	</a> </li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="user">
	<!--<div class="dashboard" id="dashboard">
		<ul>${mcurrent_user(null)}<li class="current"><a href="/manage/user/edit.php?id={$user['id']}">编辑会员</a><span></span></li></ul>
	</div>-->
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head" id="head"><!--<h2>编辑会员</h2>-->
				<ul>
					<li id="one1" onclick="setTab('one',1)">身份信息</li>
					<li id="one2" onclick="setTab('one',2)">基本信息</li>
					<li id="one3" onclick="setTab('one',3)">附加信息</li>
					
				</ul>
				<b style=" display:block; padding-top:5px;margin-left:20px;font-size:16px;">({$user['email']}/{$user['username']})</b>
				</div>
                <div class="sect">	<div id="con_one_1">	
          <form method="post" action="/manage/credit/settings.php">
						<input type="hidden" name="action" value="charge" />
                        <input name="username" type="hidden" value="{$user['id']}"/>
                        <div class="field">
                          <label>充值积分</label>
                            <input type="text" size="30" name="credit" class="number" value="0"/>
                            <input type="submit" value="充值" name="commit" class="formbutton" />
                            <span class="hint">当前积分为 <b>{$user['score']}</b> 分，增加为正数，减少为负数</span>
                        </div>
                    </form>
                    <form id="login-user-form" method="post" action="/manage/user/edit.php?id={$user['id']}">
					<input type="hidden" name="id" value="{$user['id']}" />
						<div class="wholetip clear"><!--<h3>1、身份信息</h3>--></div>
                        <div class="field">
                            <label>会员Email</label>
                            <input type="text" size="30" name="email" id="user-edit-email" class="f-input f-hint" value="{$user['email']}" />
						</div>
						<div class="field">
                            <label>会员名</label>
                            <input type="text" size="30" name="username" id="user-edit-username" class="f-input f-hint" value="{$user['username']}" />
                        </div>
						<div class="field">
                            <label>真实姓名</label>
                            <input type="text" size="30" name="realname" id="user-edit-realname" class="f-input f-hint" value="{$user['realname']}" />
                        </div>
						<div class="field">
                        <label> 所在城市：</label> 
						<!--{if is_manager(1)}-->                   
                        <select name="city_id" class="f-city">${Utility::Option(Utility::OptionArray($allcities,'id','name'), $user['city_id'])}<option value='0'>其他</option></select>
						<!--{else}-->
						<select name="city_id" disabled="disabled" class="f-city">${Utility::Option(Utility::OptionArray($allcities,'id','name'), $user['city_id'])}<option value='0'>其他</option></select>
						<!--{/if}-->
                		</div>
						<div class="field">
                            <label>QQ号码</label>
                            <input type="text" size="30" name="qq" id="user-edit-qq" class="number" value="{$user['qq']}" />
                        </div>
                        <div class="field password">
                            <label>登录密码</label>
                            <input type="text" size="30" name="password" id="settings-password" class="f-input f-hint" />
                            <span class="hint">如果不想修改密码，请保持空白</span>
                        </div>
						
						</div>
						<div id="con_one_2" style="display:none;">
						
						<div class="wholetip clear"><!--<h3>2、基本信息</h3>--></div>
                        <div class="field">
                            <label>邮政编码</label>
                            <input type="text" size="30" name="zipcode" id="user-edit-zipcode" class="f-input f-hint" value="{$user['zipcode']}"/>
                        </div>
                        <div class="field">
                            <label>配送地址</label>
                            <input type="text" size="30" name="address" id="user-edit-address" class="f-input f-hint" value="{$user['address']}"/>
						</div>
                        <div class="field">
                            <label>手机号码</label>
                            <input type="text" size="30" name="mobile" id="user-edit-mobile" class="number" value="{$user['mobile']}" maxLength="11" />
						</div>
						
						</div>
						<div id="con_one_3" style="display:none;">
						
						<div class="wholetip clear"><!--<h3>3、附加信息</h3>--></div>
                        <div class="field">
                            <label>邮件验证</label>
                            <input type="text" size="30" name="secret" id="user-edit-secret" class="f-input f-hint" value="{$user['secret']}"/>
                            <span class="hint">通过验证，请清空该字段</span>
                        </div>
						<!--{if $login_user_id==1&&$user['id']>1}-->
                        <div class="field">
                            <label>管理员</label>
                            <input type="text" size="30" name="manager" id="user-edit-manager" class="number" value="{$user['manager']}" maxLength="1" require="true" datatype="require" style="text-transform:uppercase;" /><span class="inputtip">Y:是 N:否</span>
						</div>
						<!--{/if}-->
						
						</div>
                        <div class="act">
                            <input type="submit" value="编辑" name="commit" id="user-submit" class="formbutton"/>
                        </div>
                    </form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
